package com.qixiao.lib.generic.defgeneric;

/**
 * 泛型类声明
 *
 * 最常用的类型形参名称是：
 * E - Element(Java 集合框架广泛使用)
 * K - Key
 * N - Number
 * T - Type
 * V - Value
 */
public class NormalGeneric1<T, K> {

    private T data;
    private K key;

    public NormalGeneric1() {
    }

    public NormalGeneric1(T data, K key) {
        this.data = data;
        this.key = key;
    }

    public T getData() {
        return data;
    }

    public K getKey() {
        return key;
    }

    public static void main(String[] args) {
        NormalGeneric1<String,String> normalGeneric = new NormalGeneric1<String,String>("aa","bb");
        System.out.println(normalGeneric.getData());
    }
}
